package com.chicken.service.impl;

import javax.annotation.Resource;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import com.chicken.pojo.Member;
import com.chicken.repository.MemberUpdateRepository;
import com.chicken.service.MemberUpdateService;

@Service
public class MemberUpdateServiceImpl  implements MemberUpdateService {
	
	@Resource
	private MemberUpdateRepository   memberUpdateRepository;
	
	public Member SelectByUserName(@Param("username") String username) {
		return memberUpdateRepository.SelectByUserName(username);
		}
		
		public int UpdateByUserName(Member member) {
			return memberUpdateRepository.UpdateByUserName(member);
		}
}
